import styled from "styled-components";

export const AppHeaderWrap = styled.div`
  .tips {
    display: none;
    z-index: 9999;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  height: 75px;
  background-color: #242424;
  font-size: 14px;
  min-width: 1280px;
  .content {
    height: 70px;
    display: flex;
    justify-content: space-between;
  }
  .underLine {
    background-color: #c20c0c;
    height: 5px;
  }
`;

export const AppHeaderLeft = styled.div`
  display: flex;
  .logo {
    display: block;
    height: 70px;
    width: 176px;
    background-position: 0 0px;
    text-indent: -9999px;
  }
  .select-header {
    display: flex;
    line-height: 70px;

    .select-title {
      position: relative;

      a {
        display: block;
        padding: 0 20px;
        color: #ccc;
      }
      :last-of-type a {
        position: relative;

        ::after {
          position: absolute;
          content: "";
          width: 28px;
          height: 19px;
          background-image: url(${require("@/assets/img/sprite_01.png")
            .default});
          background-position: -190px 0;
          top: 20px;
          right: -15px;
        }
      }
      &:hover a,
      .active {
        color: #fff;
        background: #000;
        text-decoration: none;
      }

      .active .icon {
        position: absolute;
        display: inline-block;
        width: 12px;
        height: 7px;
        bottom: -1px;
        left: 50%;
        transform: translate(-50%, 0);
        background-position: -226px 0;
      }
    }
  }
`;

export const AppHeaderRight = styled.div`
  height: 75px;
  display: flex;

  .create-centre {
    margin: 19px 0 0 12px;
    height: 32px;
    color: #ccc;
    border: 1px solid #4f4f4f;
    line-height: 32px;
    padding: 0 12px;
    border-radius: 32px;
    font-size: 12px;
    cursor: pointer;
    :hover {
      border: 1px solid #ccc;
    }
  }
  .login {
    color: #787878;
    margin: 19px 0 0 20px;
    line-height: 32px;
    font-size: 12px;
    &:hover {
      cursor: pointer;
      text-decoration: underline;
    }
  }
  .header-img {
    width: 30px;
    height: 30px;
    margin: 19px 0 0 20px;
    position: relative;
    padding-bottom: 50px;
    :hover ul li {
      display: block;
    }
    img {
      border-radius: 50%;
    }
    ul {
      width: 156px;
      position: absolute;
      top: 50px;
      right: -70px;
      background: #2b2b2b;
      border: 1px solid #202020;
      box-shadow: 0 8px 24px 0 rgb(0 0 0 / 50%);
      border-radius: 4px;
      z-index: 2;
      :hover li {
        display: block;
      }
      li {
        line-height: 34px;
        height: 34px;
        text-align: center;
        position: relative;
        display: none;
        a {
          color: #fff;
          font-size: 12px;
          color: #ccc;
          width: 100%;
          display: inline-block;
          text-decoration: none;
          :hover {
            color: #fff;
          }
          .icn {
            background: url(${require("@/assets/img/toplist.png").default})
              no-repeat 0 9999px;
            width: 18px;
            height: 18px;
            position: absolute;
            left: 22px;
            top: 50%;
            transform: translateY(-50%);
          }
          .icn-hm {
            background-position: 0 -80px;
          }
          .icn-msg {
            background-position: -20px -120px;
          }
          .icn-lv {
            background-position: 0 -100px;
          }
          .icn-vip {
            background-position: 0 -221px;
            margin-top: 9px;
          }
          .icn-st {
            background-position: 0 -140px;
          }
          .icn-verify {
            background-position: -20px -142px;
          }
          .icn-ex {
            background-position: 0 -200px;
          }
          .icon-num {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-block;
            min-width: 17px;
            height: 17px;
            padding: 0 4px;
            box-sizing: border-box;
            background: #c20c0c;
            border-radius: 18px;
            border: 1px solid #242424;
            line-height: 16px;
            font-size: 12px;
            white-space: nowrap;
            color: #fff;
            text-align: center;
          }
        }
      }
    }
  }
`;
